package com.ithailong.reconsitutionmassion.service;

import com.ithailong.reconsitutionmassion.entity.User;
import com.ithailong.reconsitutionmassion.exception.MyException;
import com.ithailong.reconsitutionmassion.exception.ServicesException;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author 17930
 */
public interface UserService {
   public User userLogin(String username, String password, HttpSession session);
   public int register(User user);
   //查询所有用户
   List<User> userList(int pageNum,int pageSize,User user);
   //删除用户
   boolean deleteUser(int id,HttpSession session) throws MyException;

   User selectUserById(int id);
   public int updateUser(User user);
}
